package com.yike.product.convert;

import com.yike.product.entity.Category;
import com.yike.product.param.AddCategoryParam;
import com.yike.product.vo.CategoryVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CategoryConvert {

    CategoryConvert INSTANCE = Mappers.getMapper(CategoryConvert.class);

    Category convert(AddCategoryParam addCategoryParam);

    List<CategoryVo> convert(List<Category> categories);

}
